"""
获取搜狐首页HTML代码

requests - 基于HTTP（超文本传输协议）进行网络资源访问的三方库
~ pip config set global.index-url https://pypi.doubanio.com/simple
~ pip install requests
"""
import requests

resp = requests.get('https://www.sohu.com:443/index.html')
print(type(resp), resp.status_code)
print(resp.text)
